#ifndef RECENTFILESVIEWQMENU_H
#define RECENTFILESVIEWQMENU_H

#include <QMenu>
#include <QSignalMapper>
#include "RecentFilesView.h"

class RecentFilesViewQMenu : public QMenu, public RecentFilesView
{
    Q_OBJECT

public:
    RecentFilesViewQMenu(RecentFiles& model, QWidget *parent = 0);
    void update();

private slots:
    void slotRecentFileActivated(int index);

private:
    QVector<QAction*> m_actions;
    QSignalMapper *m_actionSignalMapper;
};

#endif // RECENTFILESVIEWQMENU_H
